package main;

import java.util.ArrayList;

import collection.*;

public class SystemController {
	public static boolean createMediaItem(String itemName, 
										String description, String pathToFile){
		return MediaLibrary.createMediaItem(itemName, description, pathToFile);
	}
	
	public static boolean updateItemName(String itemName, String newName){
		return MediaLibrary.updateItemName(itemName, newName);
	}
	
	public static boolean updateItemPath(String itemName, String newPath){
		return MediaLibrary.updateItemPath(itemName, newPath);
	}
	
	public static boolean updateItemDescription(String itemName, String newDesc){
		return MediaLibrary.updateItemDescription(itemName, newDesc);
	}
	
	public static boolean deleteMediaItem(String itemName){
		return MediaLibrary.deleteMediaItem(itemName);
	}
	
	public static boolean createCollection(String name, ArrayList<Collection> parentCollections)
	{
		return MediaLibrary.createCollection(name, parentCollections);
	}

	public static boolean deleteCollection(String name)
	{
		return MediaLibrary.deleteCollection(name);
	}

	public static boolean updateCollectionName(String oldName, String newName)
	{
		return MediaLibrary.updateCollectionName(oldName, newName);
	}

	public static boolean updateCollectionParents(String name, ArrayList<Collection> newParents)
	{
		return MediaLibrary.updateCollectionParents(name, newParents);
	}
	
	public static boolean addItemToCollection(String collName, String itemName){
		return MediaLibrary.addItemToCollection(collName, itemName);
	}
	
	public static boolean removeItemFromCollection(String collName, String itemName){
		return MediaLibrary.removeItemFromCollection(collName, itemName);
	}
	
	public static boolean addCollectionToCollection(String coll_1, String coll_2){
		return MediaLibrary.addCollectionToCollection(coll_1, coll_2);
	}
	
	public static boolean removeCollectionFromCollection(String coll_1, String coll_2){
		return MediaLibrary.removeCollectionFromCollection(coll_1, coll_2);
	}
}
